package com.wangchao.administrator.zenmechi.ui.fragment.homefragment;

import android.content.Context;
import android.widget.ImageView;

import com.wangchao.administrator.zenmechi.bean.homebean.GoodsHotListBean;
import com.wangchao.administrator.zenmechi.bean.homebean.Mainbean;
import com.wangchao.administrator.zenmechi.bean.homebean.NearbyMerchantListBean;
import com.wangchao.administrator.zenmechi.image.MyListView;

import java.util.List;
import java.util.Map;

import rx.Subscriber;

/**
 * Created by Administrator on 2016/10/17.
 */
public class HomeContract {

    public interface View{
        public void onSuccess(Mainbean mainbean);

        void startGoodsDetailActivity(int goods_id);

        void setptrSv();

        public void onFail(Exception e);
    }

    public interface Model{
        public void getMainItem(Subscriber<Mainbean> subscriber, String stringtype, Map<String,String> urlMap);

        public List<ImageView> addlistvewimage(List<GoodsHotListBean> goodsHotList, Context context);

        void setListViewAdapter(MyListView myListViewone, Context context, List<GoodsHotListBean> goodsHotList);

        void setListViewAdaptertwo(MyListView myListViewtwo, Context context, List<NearbyMerchantListBean> nearbyMerchantList);
    }

    public interface Presenter{
        void getMainBean(String string, Map<String, String> map);

        public List<ImageView> setListView(List<GoodsHotListBean> goodsHotList, Context context);

        void setListViewAdapter(MyListView myListViewone, Context context, List<GoodsHotListBean> goodsHotList);

        void setListViewAdaptertwo(MyListView myListViewone, Context context, List<NearbyMerchantListBean> nearbyMerchantList);

        void lodpic(ImageView imageView, Context context, String url);
    }

}
